swapped source and destination around in memcpy.
authorØyvind Kolås <ok@src.gnome.org>
Tue, 13 Nov 2007 01:09:28 +0000 (01:09 +0000)
committerØyvind Kolås <ok@src.gnome.org>
Tue, 13 Nov 2007 01:09:28 +0000 (01:09 +0000)
* babl/babl-fish.c: (babl_fish_process): swapped source and
destination around in memcpy.

svn path=/trunk/; revision=251

ChangeLog
babl/babl-fish.c

index fae4f2b4a57f4f8fd5c62c25a6eefba8748c062a..f7437a6d55b42e5b52739d4f23f6d0e3812f0425 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-13  Øyvind Kolås  <pippin@gimp.org>
+
+       * babl/babl-fish.c: (babl_fish_process): swapped source and
+       destination around in memcpy.
+
 2007-11-13  Øyvind Kolås  <pippin@gimp.org>
 
        * babl/babl-fish.c: (go_fishing): optimized fishing when looking
index 1aa329efc69b4be1cac69eec45658fe49dcd8a8d..95a0aad8f0d90fd7dc5f1ff27a005cfe4b316cbd 100644 (file)
@@ -173,7 +173,7 @@ babl_fish_process (Babl *babl,
           {
             if (babl->fish.source == babl->fish.destination)
               { /* XXX: we're assuming linear buffers */
-                memcpy (source, destination, n * babl->fish.source->format.bytes_per_pixel);
+                memcpy (destination, destination, n * babl->fish.source->format.bytes_per_pixel);
                 ret = n;
               }
             else